<?php
include __DIR__."/Solution.php";

/**
 * Created by PhpStorm.
 * User: Sage
 * Date: 2019/4/11
 * Time: 11:06
 */
class SolutionTest extends  \PHPUnit\Framework\TestCase {

    /**
     * @param mixed ...$params
     * @dataProvider dataProvider
     */
    function testSolution(...$params){
        $answer=array_pop($params);
        $this->assertEquals($answer,(new Solution)->reverse(...$params));
    }

    function dataProvider(){
        return [
            [251,152],
            [-123,-321],
            [120,21],
            [1534236469,0]
        ];
    }
}